package com.zj.session;

import com.zj.executor.SimpleExcecuter;
import com.zj.mapping.Configration;

public class DefaultSqlSessionFactory implements SqlSessionFactory{

    private Configration configration;

    public DefaultSqlSessionFactory(Configration configration) {
        this.configration=configration;
    }

    @Override
    public SqlSession openSession() {
        return new DefaultSqlSession(configration,new SimpleExcecuter(configration));
    }
}
